package com.wgy.day10.面向对象;

public class PhoneObjectTwo {public static void main(String[] args) {
    Phone iphone=new Phone();
    System.out.println(iphone.brand);
    System.out.println(iphone.color);
    System.out.println(iphone.price);
    iphone .call("乔布斯");
    iphone. sendMessage();
    System.out.println("===========");
    iphone.brand="苹果";
    iphone.color="土豪金";
    iphone.price=7999.0;
    System.out.println(iphone.brand);
    System.out.println(iphone.color);
    System.out.println(iphone.price);
    System.out.println("========");


    Phone honor=new Phone();
    honor.call("习大大");
    honor.sendMessage();
    System.out.println(honor.price);
    System.out.println(honor.color);
    System.out.println(honor.brand);
    System.out.println("================");
    honor.brand="华为";
    honor.price=4555.0;
    honor.color="黑色";
    System.out.println(honor.price);
    System.out.println(honor.color);
    System.out.println(honor.brand);



}

}
